package com.cyk.comicforumjava.demos.utils;

public class IdProcess {
    //生成以时间戳为标识的Integer用户id
    public static Long generateUserId() {
        return  System.currentTimeMillis();
    }
    //生成以时间戳为标识的String专区id
    public static String generateZoneId() {
        return  "Z"+System.currentTimeMillis();
    }
    //生成以时间戳为标识的String版块id
    public static String generateSectionId() {
        return  "S"+System.currentTimeMillis();
    }
    //生成以时间戳为标识的String帖子id
    public static String generatePostId() {
        return  "P"+System.currentTimeMillis();
    }
    public static String generateCommentId() {
        return  "C"+System.currentTimeMillis();
    }
    public static String generateMessageId() {
        return  "M"+System.currentTimeMillis();
    }


}
